package m202402

func isPossibleToSplit(nums []int) bool {
	numTimes := make(map[int]int)
	for _, num := range nums {
		numTimes[num] = numTimes[num] + 1
		if numTimes[num] > 2 {
			return false
		}
	}
	return true
}
